#include "bo3d.h"

// Adds a viewport to the rendering target.
BBDECL Ogre::Viewport* __stdcall o_addViewPort(Ogre::RenderWindow* win, Ogre::Camera* camera, int zOrder, float left, float top, float width, float height)
{
	Ogre::Viewport* vp;

	try
	{
		vp = win->addViewport(camera, zOrder, left, top, width, height);
	}
	catch(Ogre::Exception &e)
	{
		std::cout << e.getDescription() << std::endl;
	}

	return vp;
}
